﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="members.aspx.cs" Inherits="admin_order_members" %>

<%@ Register src="../usercontrol/category.ascx" tagname="category" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
    function confirmdelete() {

        return window.confirm('Xác nhận xoá(Chú ý chỉ xoá được những thành viên chưa đặt hàng)');
    }

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceLeft" Runat="Server">
    <uc1:category ID="category1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div  class="portlet x9">
    <div class="portlet-header"><h4>Danh sách thành viên</h4></div>
            <div class="portlet-content">
<asp:UpdatePanel runat="server"><ContentTemplate>
                <div class="pcartrow" style=" margin-top:0; color: Red; font-weight: bold; text-align: center; ">
                        <asp:Label ID="Lbmessage" runat="server" Text=""></asp:Label>
                </div>
    <asp:ListView ID="products" runat="server" OnItemDeleting = "products_ItemDeleting"  
                  OnItemUpdating = "products_ItemUpdating" OnPagePropertiesChanging="products_PagePropertiesChanged"  >

             <LayoutTemplate>
         
         <div class ="pcartborder">
           
            <div class ="pcartrow header" style ="font-weight: bold;">
                <div class ="pcartitemno">STT</div>
                <div class ="pcol">Họtên</div>
                <div class = "pcol">Điện thoại </div>
                <div class = "pcol"> Email</div>
            </div> 
            
            <asp:PlaceHolder runat="server" ID="itemPlaceholder" />
            
            <div class="pager">
                <asp:Literal ID="PageInfo" runat="server" >Trang: </asp:Literal>
              <asp:DataPager ID="pager" runat="server" PagedControlID="products" PageSize="10">
                    <Fields>
                        <asp:NumericPagerField CurrentPageLabelCssClass="pager_current" ButtonCount="3" RenderNonBreakingSpacesBetweenControls="false"
                            NextPageText=".." PreviousPageText=".." />
                    </Fields>
                </asp:DataPager>
            </div>
                    
        </div>
         
         </LayoutTemplate>

             <ItemTemplate>
         
        <div  class ="pcartrow" style =" background-color: #F7F7F7 ">
            
            <div class ="pcartitemno">
               <%# Container.DataItemIndex + 1 %>
            </div>
          
            <asp:HiddenField ID="hdid" runat="server" Visible = "false"  Value = '<%#Eval("Members_Id")%>' />
           
            <div class ="pcol">
               <%#Eval("Members_Name")%>
            </div>
            <div class = "pcol">
                  <%#Eval("Members_Tel")%>
            </div>
             <div class = "pcol">
                  <%#Eval("Members_Mail")%>
            </div>
         
          <%--  <div class = "pcardsubmit">
                <a href='<%# "http://localhost:2011/didong/Admin/Product/Editproduct.aspx?id=" + Eval("Members_Id")%>' title= '<%#"Sửa chi tiết [ " + Eval("Members_Id") + " ]"%>'> <img src ="http://localhost:2011/didong/images/design/acp_edit.gif" alt = "Sửa" style ="width: 12px ;height: 12px ;border: none; padding-top: 2px;" /> </a>
           </div>
          
            <div class = "pcardsubmit">
                <asp:ImageButton ID=  "btnSave"  CommandName = "Update"  runat="server" OnClientClick = "return confirmupdate()" ImageUrl ="http://localhost:2011/didong/images/design/save_on.gif"  AlternateText = "save"  Width = "15" Height ="15"  ToolTip = "Lưu thay đổi"/>
            </div>
                
            <div class = "pcardsubmit">
                 <asp:ImageButton ID=  "btnDelete"   CommandName = "Delete"  runat="server" OnClientClick = "return confirmdelete()" ImageUrl ="http://localhost:2011/didong/images/design/delete_on.gif"  AlternateText = "Del"  Width = "15" Height ="18"  ToolTip = "Xóa sản phẩm"/>
            </div
             --%>
             <div class="ppcol"> <a href='<%# "http://localhost:2011/didong/admin/funcion/Edituser.aspx?id=" + Eval("Members_Id")%>' title= '<%#"Sửa chi tiết [ " + Eval("Members_Id") + " ]"%>'> <img src ="http://localhost:2011/didong/images/design/acp_edit.gif" alt = "Sửa" style ="width: 12px ;height: 12px ;border: none; padding-top: 2px;" /> </a>
       </div>
            <div class="ppcol"><asp:ImageButton ID=  "btnDelete"   CommandName = "Delete"  runat="server" OnClientClick = "return confirmdelete()" ImageUrl ="http://localhost:2011/didong/images/design/delete_on.gif"  AlternateText = "Del"  Width = "15" Height ="18"  ToolTip = "Xóa sản phẩm"/> </div>
        </div>
         
        </ItemTemplate>

        </asp:ListView>   

    <div><asp:Button ID="btn" runat="server" CssClass="btn btn-orange" Text="Xoá thành viên chưa đặt hàng" 
            onclick="btn_Click" /></div>
            
</ContentTemplate></asp:UpdatePanel>
</div>
</div>
</asp:Content>

